package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Set;


/**
 * The persistent class for the AUD_BUSQ_PARTIDA database table.
 * 
 */
@Entity
@Table(name="AUD_BUSQ_PARTIDA")
public class AudBusqPartida implements Serializable {
	private static final long serialVersionUID = 1L;
	private long audBusqPartidaId;
	private String codAreaReg;
	private String nomapeRazsocPart;
	private BigDecimal numSedes;
	private String tipoParticipacion;
	private String tipoPersPart;
	private BigDecimal transId;
	private Set<AudBusqMultSede> audBusqMultSedes;
	private Set<AudBusqRazSocPj> audBusqRazSocPjs;
	private Set<AudBusqRegAero> audBusqRegAeros;
	private Set<AudBusqRegEmb> audBusqRegEmbs;
	private Set<AudBusqRegMin> audBusqRegMins;
	private Set<AudBusqRegPredio> audBusqRegPredios;

    public AudBusqPartida() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="AUD_BUSQ_PARTIDA_ID", unique=true, nullable=false)
	public long getAudBusqPartidaId() {
		return this.audBusqPartidaId;
	}

	public void setAudBusqPartidaId(long audBusqPartidaId) {
		this.audBusqPartidaId = audBusqPartidaId;
	}


	@Column(name="COD_AREA_REG", nullable=false, length=5)
	public String getCodAreaReg() {
		return this.codAreaReg;
	}

	public void setCodAreaReg(String codAreaReg) {
		this.codAreaReg = codAreaReg;
	}


	@Column(name="NOMAPE_RAZSOC_PART", nullable=false, length=100)
	public String getNomapeRazsocPart() {
		return this.nomapeRazsocPart;
	}

	public void setNomapeRazsocPart(String nomapeRazsocPart) {
		this.nomapeRazsocPart = nomapeRazsocPart;
	}


	@Column(name="NUM_SEDES", nullable=false, precision=2)
	public BigDecimal getNumSedes() {
		return this.numSedes;
	}

	public void setNumSedes(BigDecimal numSedes) {
		this.numSedes = numSedes;
	}


	@Column(name="TIPO_PARTICIPACION", length=4)
	public String getTipoParticipacion() {
		return this.tipoParticipacion;
	}

	public void setTipoParticipacion(String tipoParticipacion) {
		this.tipoParticipacion = tipoParticipacion;
	}


	@Column(name="TIPO_PERS_PART", nullable=false, length=1)
	public String getTipoPersPart() {
		return this.tipoPersPart;
	}

	public void setTipoPersPart(String tipoPersPart) {
		this.tipoPersPart = tipoPersPart;
	}


	@Column(name="TRANS_ID", nullable=false)
	public BigDecimal getTransId() {
		return this.transId;
	}

	public void setTransId(BigDecimal transId) {
		this.transId = transId;
	}


	//bi-directional many-to-one association to AudBusqMultSede
	@OneToMany(mappedBy="audBusqPartida")
	public Set<AudBusqMultSede> getAudBusqMultSedes() {
		return this.audBusqMultSedes;
	}

	public void setAudBusqMultSedes(Set<AudBusqMultSede> audBusqMultSedes) {
		this.audBusqMultSedes = audBusqMultSedes;
	}
	

	//bi-directional many-to-one association to AudBusqRazSocPj
	@OneToMany(mappedBy="audBusqPartida")
	public Set<AudBusqRazSocPj> getAudBusqRazSocPjs() {
		return this.audBusqRazSocPjs;
	}

	public void setAudBusqRazSocPjs(Set<AudBusqRazSocPj> audBusqRazSocPjs) {
		this.audBusqRazSocPjs = audBusqRazSocPjs;
	}
	

	//bi-directional many-to-one association to AudBusqRegAero
	@OneToMany(mappedBy="audBusqPartida")
	public Set<AudBusqRegAero> getAudBusqRegAeros() {
		return this.audBusqRegAeros;
	}

	public void setAudBusqRegAeros(Set<AudBusqRegAero> audBusqRegAeros) {
		this.audBusqRegAeros = audBusqRegAeros;
	}
	

	//bi-directional many-to-one association to AudBusqRegEmb
	@OneToMany(mappedBy="audBusqPartida")
	public Set<AudBusqRegEmb> getAudBusqRegEmbs() {
		return this.audBusqRegEmbs;
	}

	public void setAudBusqRegEmbs(Set<AudBusqRegEmb> audBusqRegEmbs) {
		this.audBusqRegEmbs = audBusqRegEmbs;
	}
	

	//bi-directional many-to-one association to AudBusqRegMin
	@OneToMany(mappedBy="audBusqPartida")
	public Set<AudBusqRegMin> getAudBusqRegMins() {
		return this.audBusqRegMins;
	}

	public void setAudBusqRegMins(Set<AudBusqRegMin> audBusqRegMins) {
		this.audBusqRegMins = audBusqRegMins;
	}
	

	//bi-directional many-to-one association to AudBusqRegPredio
	@OneToMany(mappedBy="audBusqPartida")
	public Set<AudBusqRegPredio> getAudBusqRegPredios() {
		return this.audBusqRegPredios;
	}

	public void setAudBusqRegPredios(Set<AudBusqRegPredio> audBusqRegPredios) {
		this.audBusqRegPredios = audBusqRegPredios;
	}
	
}